import {
	HTTP
} from '../utils/http.js';

import util from '../utils/util.js';

export class reportModule extends HTTP {

	getTodayReport() {
		const userData = util.getStorage('userData')
		return this.request({
			url: '/api/Report/GetTodayReport',
			data: {
				userID: userData.userID
			}
		})
	}

	getHistoryReport(type = 1) {
		const userData = util.getStorage('userData')
		return this.request({
			url: '/api/Report/GetHistoryReport',
			data: {
				userID: userData.userID,
				type:type
			}
		})
	}
}
